<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>AddUser</title>
</head>
<body>
<h1>AddUser</h1>
<hr>
<div th:include="commons/topBar :: topBar"></div>

<form th:action="@{/user/addUser}" method="post">
    <div>
        <label for="">用户名</label>
        <input type="text" name="username">
    </div>

    <div>
        <label for="">密码</label>
        <input type="password" name="password">
    </div>

    <div>
        <label for="">角色</label>
        <select name="role" id="">
            <option value="0">普通用户</option>
            <option value="1">管理员</option>
        </select>
    </div>

    <input type="submit" value="添加"><br>

    <p th:text="${msg}"></p>


</form>
</body>
</html>